package com.ruoyi.web.controller.xcx;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.ACarousel;
import com.ruoyi.system.service.IACarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 轮播图Controller
 *
 * @author ruoyi
 * @date 2024-05-17
 */
@RestController
@RequestMapping("/xcx/aCarousel")
public class XcxACarousel extends BaseController {

    @Autowired
    private IACarouselService aCarouselService;

    /**
     * 查询轮播图列表
     */
    @GetMapping("/list")
    public TableDataInfo list(ACarousel aCarousel)
    {
        startPage();
        List<ACarousel> list = aCarouselService.selectACarouselXcxList(aCarousel);
        return getDataTable(list);
    }
}
